package com.nf.service;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class Test {

    @Before("execution(* Girl.play(..))||execution(* Girl.eat(..))")
    public void Xx(){
        System.out.println("吃饭前洗手");
    }

    @After("execution(* Girl.play(..))")
    public void Zz(){
        System.out.println("可以卸妆");
    }
}
